package com.hb.trade.server.project.section.manager;

import cn.hutool.extra.spring.SpringUtil;
import com.hb.core.pojo.project.section.dto.BidDownRecordDTO;
import com.hb.core.pojo.project.section.entity.BidSection;
import com.hb.trade.server.project.section.service.raw.BidSectionService;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * describe:
 *
 * @author zhongdl
 * @date 2022/01/04
 */
public class BidDownRecordManager extends BidDownRecordDTO {


      public  void fillField(){
          //下载时间
          this.setDownTime(LocalDateTime.now());
          BidSectionService bidSectionService = SpringUtil.getBean(BidSectionService.class);
          BidSection bidSection = bidSectionService.getById(getSectionId());
          //招标文件id
          setFileId(bidSection.getFileId());
          buildBaseData(1);

      }
}
